home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / timer < prev    next >
Encoding:
Text File  |  2001-03-21  |  721 b   |  25 lines

  1. Synopsis:
  2.    on [#][<mode>]timer [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever the specified time (or time glob pattern)
  6.    matches the current time.  The time may be in one of two formats:
  7.  
  8.       Format         Description                                          
  9.       hh:mm<am|pm>   0 <= hh <= 12, 0 <= mm <= 59, am or pm set accordingly
  10.       hh:mm          0 <= hh <= 23, 0 <= mm <= 59
  11.  
  12. Parameters:
  13.    $0    current time (format depends on CLOCK_24HOUR setting)
  14.  
  15. Examples:
  16.    To inform the user of the time once per hour on the hour:
  17.       on ^timer "%:00*" {
  18.          echo *** The time is not $Z
  19.          beep
  20.       }
  21.  
  22. See Also:
  23.    set(4) clock_24hour
  24.  
  25.